<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="am-cf" id="app">
    <input type="submit" name="" @click="emailActivate" value="点击激活" class="am-btn am-btn-primary am-btn-sm am-fl">
</div>
<script type="text/javascript">
    new Vue({
        el: "#app",
        data: {
            emailId: null
        },
        methods: {
            emailActivate(){
                this.$http.post("/user/email/activate").then(res => {
                    if(res.data.success){
                        alert("激活成功");
                    }else{
                        alert(res.data.msg);
                    }
                }).catch(res => {
                    alert("系统错误!")
                })
            }
        },
        mounted: {}
    })
</script>
</body>
</html>